package com.ruoyi.project.carManage.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.carManage.mapper.CarManageMapper;
import com.ruoyi.project.carManage.domain.CarManage;
import com.ruoyi.project.carManage.service.ICarManageService;
import com.ruoyi.common.core.text.Convert;

/**
 * 四向车监控Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-25
 */
@Service
public class CarManageServiceImpl implements ICarManageService 
{
    @Autowired
    private CarManageMapper carManageMapper;

    /**
     * 查询四向车监控
     * 
     * @param id 四向车监控主键
     * @return 四向车监控
     */
    @Override
    public CarManage selectCarManageById(Long id)
    {
        return carManageMapper.selectCarManageById(id);
    }

    /**
     * 查询四向车监控列表
     * 
     * @param carManage 四向车监控
     * @return 四向车监控
     */
    @Override
    public List<CarManage> selectCarManageList(CarManage carManage)
    {
        return carManageMapper.selectCarManageList(carManage);
    }

    /**
     * 新增四向车监控
     * 
     * @param carManage 四向车监控
     * @return 结果
     */
    @Override
    public int insertCarManage(CarManage carManage)
    {
        return carManageMapper.insertCarManage(carManage);
    }

    /**
     * 修改四向车监控
     * 
     * @param carManage 四向车监控
     * @return 结果
     */
    @Override
    public int updateCarManage(CarManage carManage)
    {
        return carManageMapper.updateCarManage(carManage);
    }

    /**
     * 批量删除四向车监控
     * 
     * @param ids 需要删除的四向车监控主键
     * @return 结果
     */
    @Override
    public int deleteCarManageByIds(String ids)
    {
        return carManageMapper.deleteCarManageByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除四向车监控信息
     * 
     * @param id 四向车监控主键
     * @return 结果
     */
    @Override
    public int deleteCarManageById(Long id)
    {
        return carManageMapper.deleteCarManageById(id);
    }
}
